<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        function go_forward($msg,$url){
            echo "<script>alert('$msg');location.href='$url'</script>";
        }
//        go_forward("去百度", "http://www.baidu.com");
        ?>
    </body>
</html>
